package mysql

import "gorm.io/gorm"

type File struct {
	gorm.Model
	FileUrl  string `gorm:"type:varchar(500);not null"`
	FileSize string `gorm:"type:varchar(10);not null"`
}

func (f *File) FileAdd(db *gorm.DB) error {
	return db.Debug().Create(f).Error
}
